package com.xcx.robot.mirai.key;

import java.util.Random;

/**
 * @author 邢晨旭
 * @date 2020/7/22 下午8:28
 * <p>
 * 报名职业枚举
 */
public enum PositionLocation {

    /**
     * 第一位置
     *0外 1内 2奶 3t 4老板
     */
    GAI_BANG("丐帮",0, 1, "gb.png","笑尘诀"),
    JIAN_CHUN("剑纯", 0,2, "jc.png","太虚剑意"),
    CANG_JIAN("藏剑", 0,3,"cj.png", "山居剑意"),
    AO_XUE("傲血", 0,4, "tc.png","傲血战意"),
    FEN_SHAN("分山", 0,5,"fs.png", "分山劲"),

    PENG_LAI("蓬莱",0, 6,"pl.png", "凌海诀"),
    LING_XUE("凌雪",0, 7,"lx.png", "隐龙诀"),
    JING_YU("惊羽",0, 8,"jy.png", "惊羽诀"),
    BAO_DAO("霸刀",0, 9,"bd.png", "北傲诀"),


    QI_CHUN("气纯",1, 11,"qc.png", "紫霞功"),
    YAN_TIAN("衍天",1, 12,"yt.png", "太玄经"),
    DU_JING("毒经",1,13, "dj.png","毒经"),
    FEN_YING("焚影",1, 14,"fy.png", "焚影圣诀"),
    BING_XIN("冰心",1, 15,"bx.png", "冰心诀"),

    YI_JIN("易筋",1, 16,"hs.png", "易筋经"),
    MO_WEN("莫问",1, 17,"mw.png", "莫问"),
    HUA_JIAN("花间", 1,18,"hj.png", "花间游"),
    TIAN_LUO("田螺", 1,19,"tl.png", "天罗诡道"),

    TIE_GU("铁骨",3, 22,"tg.png", "铁骨衣"),
    MING_ZUN("明尊", 3,21,"mjt.png", "明尊琉璃体"),
    XI_SUI("洗髓",3, 22, "hst.png","洗髓经"),
    TIE_LAO("铁牢", 3,22,"tct.png", "铁牢律"),

    NAI_GE("奶歌", 2,20,"ng.png", "相知"),
    NAI_DU("奶毒", 2,23,"nd.png", "补天诀"),
    NAI_HUA("奶花", 2,24,"nh.png", "离经易道"),
    NAI_XIU("奶秀", 2,25,"nx.png", "云裳心经"),


    LAO_BAN("老板",4, 10,"0.png", "老板"),


    ;

    /**
     * 职业
     */
    public String position;

    public Integer type;
    /**
     * 默认位置
     */
    public Integer location;


    public String url;

    public String fullName;


    PositionLocation(String position,Integer type, Integer location,String url, String fullName) {
        this.position = position;
        this.type = type;
        this.location = location;
        this.url = url;
        this.fullName = fullName;
    }

    public static PositionLocation get(String position) {
        switch (position) {
            case "凌雪":
                return LING_XUE;
            case "蓬莱":
                return PENG_LAI;
            case "霸刀":
                return BAO_DAO;
            case "莫问":
                return MO_WEN;
            case "奶歌":
            case "相知":
                return NAI_GE;
            case "分山":
            case "苍云":
                return FEN_SHAN;
            case "铁骨":
            case "苍云t":
            case "苍云T":
                return TIE_GU;
            case "丐帮":
                return GAI_BANG;
            case "焚影":
                return FEN_YING;
            case "明教T":
            case "明教t":
            case "明尊":
                return MING_ZUN;
            case "田螺":
            case "天罗":
                return TIAN_LUO;
            case "鲸鱼":
            case "惊羽":
                return JING_YU;
            case "毒经":
                return DU_JING;
            case "奶毒":
                return NAI_DU;
            case "藏剑":
                return CANG_JIAN;
            case "傲雪":
            case "傲血":
                return AO_XUE;
            case "铁牢":
            case "天策t":
            case "天策T":
                return TIE_LAO;
            case "剑纯":
                return JIAN_CHUN;
            case "气纯":
                return QI_CHUN;
            case "冰心":
                return BING_XIN;
            case "奶秀":
                return NAI_XIU;
            case "花间":
                return HUA_JIAN;
            case "奶花":
                return NAI_HUA;
            case "易筋":
            case "少林":
            case "和尚":
                return YI_JIN;
            case "洗髓":
            case "和尚t":
            case "和尚T":
                return XI_SUI;
            case "衍天宗":
            case "衍天":
            case "衍员":
            case "演员":
                return YAN_TIAN;
            case "老板":
                return LAO_BAN;
            default:
                return null;
        }
    }


    public static String getUrl() {
        Random random = new Random();
        return "https://jx3kt.oss-cn-shanghai.aliyuncs.com/"+values()[random.nextInt(values().length)].url;
    }
}
